#include <QWidget>
#include <QColor>
#include <QPaintEvent>
#include <QMouseEvent>
#include <QPainter>

#include<math.h>

#include "CLUT.h"

class PlotColors:public QWidget
{
	public:
		PlotColors();
		
		void clearColors();
		void addColors(QColor c);
		
		QString getResults();
		
		void displayClassif(bool b);
		
		void setColors(int color1,int color2);
		
	private:
		int color1,color2;
		static const int size=150,space=5;
		QList<QColor> colors;
		QList<bool> selec;
		bool showClassifC11;
		
	protected:
		void paintEvent(QPaintEvent * e);
		void mousePressEvent(QMouseEvent * e);
};